package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/*
* 报表
*收货日报
* 发货明细
* */
@Controller
@RequestMapping("/reports")
public class WmsReportRouter {
    @Autowired
    SysMenuService menuService;
    //收货日报主页面
    @RequestMapping(value = "/toReports/{menu}")
    public String toReports(@PathVariable String menu, Model model) {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "journaling/reports_baobiao/ss_reports";
    }
    //发货明细报表主页面
    @RequestMapping(value = "/tofhmx/{menu}")
    public String tofhmx(@PathVariable String menu, Model model) {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "journaling/reports_baobiao/fhmx_reports";
    }

}
